class TemperatureModel{
  String license;//车牌
  String organization;//组织
  bool isChange;
  List<TemperatureExpansionpanleData> data;

  TemperatureModel({this.license, this.data, this.isChange,this.organization});

  TemperatureModel.fromJson(Map<String, dynamic> json) {
    license = json['license'];
    organization=json['organization'];
    if (json['data'] != null) {
      data = new List<TemperatureExpansionpanleData>();(json['data'] as List).forEach((v) { data.add(new TemperatureExpansionpanleData.fromJson(v)); });
    }
    isChange = json['isChange'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['license'] = this.license;
    data['organization']=this.organization;
    if (this.data != null) {
      data['data'] =  this.data.map((v) => v.toJson()).toList();
    }
    data['isChange'] = this.isChange;
    return data;
  }
}

class TemperatureExpansionpanleData {
  String timeDate;//时间
  double speed;//速度
  double temperature;//温度
  double avgTemperature;//平均温度
  double humidity;//湿度
  String status;//状态
  String address;

  TemperatureExpansionpanleData({this.timeDate, this.speed,this.temperature,
    this.avgTemperature,this.humidity,this.status,this.address});

  TemperatureExpansionpanleData.fromJson(Map<String, dynamic> json) {
    timeDate = json['timeDate'];
    speed = json['speed'];
    temperature = json['temperature'];
    avgTemperature = json['avgTemperature'];
    humidity = json['humidity'];
    status = json['status'];
    address = json['address'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['timeDate'] = this.timeDate;
    data['speed'] = this.speed;
    data['temperature'] = this.temperature;
    data['avgTemperature'] = this.avgTemperature;
    data['humidity'] = this.humidity;
    data['status'] = this.status;
    data['address'] = this.address;
    return data;
  }
}